#ifndef ENTRY_H
#define ENTRY_H

#include "stm32F4xx.h"
#include "HeaderFile.h"

/***********User Define Begin ***************/

#define FIRST_BOOTUP		1
#define REINIT_MOTO			2


#define TASK_DELAY_TIME		2
/************User Define End *****************/


/***************User-defined Variable Type Begin ********************/


typedef enum
{
	RPDO_SEND_OK,
	RPDO_SEND_ERR
}RPDO_SendStatus_e;

/***************User-defined Variable Type End ********************/


/*****************User Function Void Begin***************/
void BootUp_Task_RecvFeedbackFromMoto(void);

void Entry_BOOTUP_MOTO_START_THREAD(void *param);

void Entry_SEND_POSITION_CAN_DATA_TO_MOTO(void *param);

void Entry_SEND_SPEED_CAN_DATA_TO_MOTO(void *param);

void Entry_SEND_SYNC_FRAME(void *param);

void Entry_RECV_FEEBBACK_FROM_MOTO(void *param);

void Entry_PROCESS_ERROR(void *param);

void Entry_Recv_Classify_ConvertMCUCMD(void *param);

void Entry_PACK_STANDARD_POSITION_DATA_TO_CANOPEN_FRAME(void *param);

void Entry_STORE_STANDARD_POSITION_DATA_TO_STRUCT(void *param);

void Entry_STORE_STANDARD_SPEED_DATA_TO_STRUCT(void *param);

void Entry_PACK_STANDARD_SPEED_DATA_TO_CANOPEN_FRAME(void *param);

void Entry_SEND_FEEDBACK_TO_MCU(void *param); 

void Entry_HOMING(void *param);

void Entry_USER_IDLE_TASK(void *param);

//void Entry_Task_Test(void *param);

/*****************User Function Void End***************/

#endif 



